package com.tencent.wxcloudrun.dao;

import com.tencent.wxcloudrun.model.Comment;
import com.tencent.wxcloudrun.model.Post;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.tencent.wxcloudrun.model.Comment
 */
@Mapper
public interface CommentMapper {

    int addComment(Comment comment);

    List<Comment> getcomment(Map<String,Object> data);

    List<Post> getcommentbyopenid(String openid);

    List<Post> getpostmylikeByOpenid(String openid);

    int updateaddressbyopenid(String openid, String address, String town, int id);
}




